/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase202202 - For5
 * <p>Powered by Lisi On 2022-06-01 14:35:34
 * <p>Created by IntelliJ IDEA
 *

 * @version 1.0
 * @since 17
 */
public class For5 {
    public static void main(String[] args) {
        //for break continue
        for (int i = 0; i < 10; i++) {
            if(i>1 && i % 2 ==0){
                continue;//继续，结束本次循环，立即开始下一次循环
            }
            System.out.println(i);
            if(i>5){
                //主要功能是退出循环，直接跳到循环语句下一句
                System.out.println("循环退出");
                break;
            }
        }

    }
}
